package com.CST.controller;

import com.CST.common.api.ResultObject;
import com.CST.dto.RubbingDTO;
import com.CST.service.InspectionCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author qtx
 * @since 2022/9/21
 */
@RestController
@RequestMapping("/inspectionCheck")
public class InspectionCheckController {

    @Autowired
    private InspectionCheckService service;

    @PostMapping("/getRubbing1")
    public Object getRubbing1(@RequestBody RubbingDTO dto) {
        return ResultObject.success(service.rubbing1(dto));
    }

    @PostMapping("/getRubbing2")
    public Object getRubbing2(@RequestBody RubbingDTO dto) {
        return ResultObject.success(service.rubbing2(dto));
    }

    @PostMapping("/getRubbing3")
    public Object getRubbing3(@RequestBody RubbingDTO dto) {
        return ResultObject.success(service.rubbing3(dto));
    }

    @PostMapping("/getRubbing4")
    public Object getRubbing4(@RequestBody RubbingDTO dto) {
        return ResultObject.success(service.rubbing4(dto));
    }

    @PostMapping("/getRubbing5")
    public Object getRubbing5(@RequestBody RubbingDTO dto) {
        return ResultObject.success(service.rubbing5(dto));
    }

    @PostMapping("/getRubbing6")
    public Object getRubbing6(@RequestBody RubbingDTO dto) {
        return ResultObject.success(service.rubbing6(dto));
    }


}
